<template>
  <div class="public-activities">
    <h2>Public Activities</h2>
    <ul>
      <li v-for="activity in activities" :key="activity.id">
        <router-link :to="'/activity/' + activity.id">{{ activity.title }}</router-link>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activities: [
        { id: 1, title: 'Activity 1' },
        { id: 2, title: 'Activity 2' },
        { id: 3, title: 'Activity 3' },
      ]
    };
  }
};
</script>

<style scoped>
.public-activities {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.public-activities h2 {
  text-align: center;
  margin-bottom: 20px;
}

.public-activities ul {
  list-style-type: none;
  padding: 0;
}

.public-activities li {
  margin-bottom: 10px;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.public-activities a {
  text-decoration: none;
  color: #42b983;
  transition: color 0.3s ease;
}

.public-activities a:hover {
  color: #2c3e50;
  text-decoration: underline;
}
</style>